﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BlogTruyen.ViewModels
{
    public class Img : Models.BaseModel
    {
        public int id { get; set; }
        bool _isHide;
        public bool isHide
        {
            get { return _isHide; }
            set
            {
                _isHide = value;
                //NotifyPropertyChanged("src");
            }
        }
        private string _src;
        public string src
        {
            get
            {
                //if (isHide) 
                //    return null;
                return _src;
            }
            set
            {
                _src = value;
                //NotifyPropertyChanged("src");
            }
        }
        public string index { get; set; }
        private bool _isLoading;
        public bool isLoading
        {
            get { return _isLoading; }
            set
            {
                _isLoading = value;
                NotifyPropertyChanged("isLoading");
            }
        }
        public Img()
        {
            isHide = true;
            isLoading = true;
        }
    }
}
